package com.tgh.gles2.c8.pixbuffer;

import com.tgh.gles2.ControlPanelRendererActivity;

import android.os.Bundle;

public class GLActivity extends ControlPanelRendererActivity {
    
    private PixBufferRenderer mRenderer;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mRenderer = new PixBufferRenderer(this);
        mRenderer.setSurfaceView(mSurfaceView);
        setRenderer(mRenderer);
    }

    @Override
    protected void onPressLeft() {
//        mRenderer.decelerate();
        mRenderer.turnLeft();
    }

    @Override
    protected void onPressRight() {
//        mRenderer.accelerate();
        mRenderer.turnRight();
    }

    @Override
    protected void onPressUp() {
        mRenderer.moveForward();
    }

    @Override
    protected void onPressDown() {
        mRenderer.moveBack();
    }

}
